﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BaseData.Domain.Entities
{
    /// <summary>
    /// 请假
    /// </summary>
    public class Leave:BaseModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 申请人id
        /// </summary>
        public int LeaveId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string LeaveName { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public int DepartmentId { get; set; }
        /// <summary>
        /// 请假类别
        /// </summary>
        public string LeaveType { get; set; }
        /// <summary>
        /// 请假开始时间
        /// </summary>
        public DateTime LeaveStartTime { get; set; }
        /// <summary>
        /// 请假结束时间
        /// </summary>
        public DateTime LeaveEndTime { get; set; }
        /// <summary>
        /// 总工时
        /// </summary>
        public int LeaveHours { get; set; }
        /// <summary>
        /// 报到时间
        /// </summary>
        public DateTime LeaveReportTime { get; set; }
        /// <summary>
        /// 请假事由
        /// </summary>
        public string LeaveReason { get; set; }
        /// <summary>
        /// 领导人名字
        /// </summary>
        public string LeaderName { get; set; }
        public string LeaderIds { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public int ApprovalStatus { get; set; }
        /// <summary>
        /// 审批状态名称
        /// </summary>
        public string ApprovalStatusName { get; set; }
    }
}
